HDFS-16220.[FGL]Configurable INodeMap#NAMESPACE_KEY_DEPTH&NUM_RANGES_STATIC.#3417
HDFS-16220.[FGL]Configurable INodeMap#NAMESPACE_KEY_DEPTH&NUM_RANGES_STATIC.#3417jianghuazhu wants to merge 1 commit intoapache:fglfrom
Conversation
|
💔 -1 overall
This message was automatically generated. |
6b98ab9 to
0501b87
Compare
|
💔 -1 overall
This message was automatically generated. |
0501b87 to
ba8541f
Compare
|
💔 -1 overall
This message was automatically generated. |
xinglin
left a comment
There was a problem hiding this comment.
Looking good overall. Thanks for working on this!
There was a problem hiding this comment.
This is definitely one way to do it but is there a way we can make numSpaceKeyDepth/numRangesStatic a non-static variable?
numspaceKeyDepth -> numSpaceKeyDepth
numRangesStatic -> numRanges
There was a problem hiding this comment.
Thanks @xinglin for the comment.
I will update it later.
There was a problem hiding this comment.
Also, if we want to support namespaceKeyDepth other than 2, we probably need to modify the range Keys we insert when we create new partitions. Instead of inserting range key such as [0, 16385], [1, 16385], [2, 16385], I think we might need to insert range keys as [0,0, 16385], [1,0,16385], [2,0,16385] ... for depth of 3 and [0,0,0,16385], [1,0,0,16385], [2,0,0,16385]... for depth of 4.
for (int p = 0; p < numRangesStatic; p++) {
INodeDirectory key = new INodeDirectory(INodeId.ROOT_INODE_ID,
"range key".getBytes(StandardCharsets.UTF_8), perm, 0);
key.setParent(new INodeDirectory((long)p, null, perm, 0));
There was a problem hiding this comment.
Thanks @xinglin for the comment.
I agree with you and I will update it later.
8dae87f to
76553d1
Compare
|
💔 -1 overall
This message was automatically generated. |
|
💔 -1 overall
This message was automatically generated. |
|
💔 -1 overall
This message was automatically generated. |
|
💔 -1 overall
This message was automatically generated. |
76553d1 to
728ef52
Compare
|
💔 -1 overall
This message was automatically generated. |
|
@xinglin, can you help review? Here are some phenomena in the debugging process. When numSpaceKeyDepth=4, numRanges=10 |
There was a problem hiding this comment.
Can we add a check here to make sure numRanges is power of 2? thanks,
There was a problem hiding this comment.
Thanks @xinglin for the comment.
I will update it later.
728ef52 to
40d3186
Compare
|
💔 -1 overall
This message was automatically generated. |
|
@shvachko Could you please review this PR. Thanks. |
|
We're closing this stale PR because it has been open for 100 days with no activity. This isn't a judgement on the merit of the PR in any way. It's just a way of keeping the PR queue manageable. |
Description of PR
INodeMap#NAMESPACE_KEY_DEPTH&NUM_RANGES_STATIC is configurable.
How was this patch tested?
INodeMap#NAMESPACE_KEY_DEPTH and NUM_RANGES_STATIC can be successfully obtained after changing the values of INodeMap#NAMESPACE_KEY_DEPTH and NUM_RANGES_STATIC in the Configuration.
jira:HDFS-16220